const setToken = (title='token', val) => {
  localStorage.setItem(title, val);
};

const getToken = (title='token') => {
  return localStorage.getItem(title);
};

const removeToken = (title='token') => {
  localStorage.removeItem(title);
};
const clearToken = () => {
  localStorage.clear();
};
export { setToken, getToken, removeToken, clearToken };
